-- GENERATED SPELL FOR [Commander Arcus] --


function spell0_23452(pUnit, Event) --@Aimed Shot,n/a--
pUnit:FullCastSpellOnTarget(38370,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23452', 3000, 1)
end

function spell1_23452(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(41448,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23452', 584, 1)
end

function spell2_23452(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(41440,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23452', 625, 1)
end

function Sorts_23452(pUnit, Event)
local choix_sorts_23452 = math.random(0, 2)
if choix_sorts_23452 == 0 then
pUnit:RegisterEvent('spell0_23452', 1, 1)
end
if choix_sorts_23452 == 1 then
pUnit:RegisterEvent('spell1_23452', 1, 1)
end
if choix_sorts_23452 == 2 then
pUnit:RegisterEvent('spell2_23452', 1, 1)
end
end

function mob23452_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23452', math.random(1500, 3000), 1)
end

function mob23452_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23452_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23452_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23452, 1, 'mob23452_Action')
RegisterUnitEvent(23452, 2, 'mob23452_Leave')
RegisterUnitEvent(23452, 3, 'mob23452_Kill')
RegisterUnitEvent(23452, 4, 'mob23452_Die')
